home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Tools & Goodies / More View Resources / Radio Groups / RadioGrp.h < prev    next >
Encoding:
Text File  |  1996-04-22  |  2.3 KB  |  82 lines  |  [TEXT/CWIE]

  1. //========================================================================================
  2. //
  3. //    File:                RadioGrp.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Author:                Laurent Delamare
  7. //
  8. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef RADIOGRP_H
  13. #define RADIOGRP_H
  14.  
  15. #ifndef DEFINES_K
  16. #include "Defines.k"
  17. #endif
  18.  
  19. // ----- Part Layer -----
  20.  
  21. #ifndef FWSVIEW_H
  22. #include "FWSView.h"
  23. #endif
  24.  
  25. //========================================================================================
  26. // Forward Declaration
  27. //========================================================================================
  28.  
  29. class FW_CRadioCluster;
  30.  
  31. //========================================================================================
  32. // CRadioGroup
  33. //========================================================================================
  34.  
  35. class CRadioGroup : public FW_CSuperView
  36. {
  37. public:
  38.     FW_DECLARE_CLASS
  39.  
  40. public:        
  41.     CRadioGroup(Environment *ev, 
  42.                 FW_CSuperView* container, 
  43.                 const FW_CRect& bounds,
  44.                 ODID viewId,
  45.                 const FW_CPoint& extent);
  46.     virtual ~ CRadioGroup();
  47.  
  48. private:
  49.     CRadioGroup(Environment *ev);
  50.  
  51. //----------------------------------------------------------------------------------------
  52. // Inherited API
  53. public:        
  54.     // ----- Archiving -----
  55.     static void*        Create(FW_CReadableStream& stream, FW_ClassTypeConstant type);
  56.     static void            Destroy(void* object, FW_ClassTypeConstant type);
  57.     virtual void        Flatten(Environment* ev, FW_CWritableStream& stream) const;
  58.     virtual void        InitializeFromStream(Environment* ev, FW_CReadableStream& stream);
  59.  
  60. //----------------------------------------------------------------------------------------
  61. //    New API
  62. public:        
  63.     FW_CRadioCluster*    GetRadioCluster(Environment* ev) const;
  64.     
  65. //----------------------------------------------------------------------------------------
  66. //    Private data
  67.  private:
  68.     FW_CRadioCluster*    fRadioCluster;
  69. };
  70.  
  71. //========================================================================================
  72. // in-lines
  73. //========================================================================================
  74.  
  75. inline    FW_CRadioCluster* CRadioGroup::GetRadioCluster(Environment* ev) const
  76. {
  77.     return fRadioCluster;
  78. }
  79.  
  80.  
  81. #endif
  82.